package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.mapper.PsInspectiontaskMainMapper;
import com.example.entity.PsInspectiontaskMain;
import com.example.service.PsInspectiontaskMainService;

import java.util.List;

@Service
@Slf4j
public class PsInspectiontaskMainServiceImpl implements PsInspectiontaskMainService{

    @Resource
    private PsInspectiontaskMainMapper psInspectiontaskMainMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return psInspectiontaskMainMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PsInspectiontaskMain record) {
        return psInspectiontaskMainMapper.insert(record);
    }

    @Override
    public int insertSelective(PsInspectiontaskMain record) {
        return psInspectiontaskMainMapper.insertSelective(record);
    }

    @Override
    public PsInspectiontaskMain selectByPrimaryKey(Long id) {
        return psInspectiontaskMainMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PsInspectiontaskMain record) {
        return psInspectiontaskMainMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PsInspectiontaskMain record) {
        return psInspectiontaskMainMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<PsInspectiontaskMain> listmain(PsInspectiontaskMain psInspectiontaskMain) {
        return psInspectiontaskMainMapper.listmain(psInspectiontaskMain);
    }

    @Override
    public IPage<PsInspectiontaskMain> selectByPage(PsInspectiontaskMain psInspectiontaskMain,IPage<PsInspectiontaskMain> userPage, Wrapper<PsInspectiontaskMain> userWrapper) {
        return psInspectiontaskMainMapper.selectByPage(psInspectiontaskMain,userPage,userWrapper);
    }

}
